.class public final Lcom/google/android/exoplayer/MediaCodecUtil;
.super Ljava/lang/Object;
.source "MediaCodecUtil.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x10
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/android/exoplayer/MediaCodecUtil$b;,
        Lcom/google/android/exoplayer/MediaCodecUtil$d;,
        Lcom/google/android/exoplayer/MediaCodecUtil$e;,
        Lcom/google/android/exoplayer/MediaCodecUtil$c;,
        Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;
    }
.end annotation


# static fields
.field private static final a:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Lcom/google/android/exoplayer/MediaCodecUtil$b;",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "Landroid/media/MediaCodecInfo$CodecCapabilities;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    return-void
.end method

.method private static a(Lcom/google/android/exoplayer/MediaCodecUtil$b;Lcom/google/android/exoplayer/MediaCodecUtil$c;)Landroid/util/Pair;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/exoplayer/MediaCodecUtil$b;",
            "Lcom/google/android/exoplayer/MediaCodecUtil$c;",
            ")",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "Landroid/media/MediaCodecInfo$CodecCapabilities;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;
        }
    .end annotation

    .line 3
    :try_start_0
    invoke-static {p0, p1}, Lcom/google/android/exoplayer/MediaCodecUtil;->b(Lcom/google/android/exoplayer/MediaCodecUtil$b;Lcom/google/android/exoplayer/MediaCodecUtil$c;)Landroid/util/Pair;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 4
    new-instance p1, Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;

    const/4 v0, 0x0

    invoke-direct {p1, p0, v0}, Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;-><init>(Ljava/lang/Throwable;Lcom/google/android/exoplayer/MediaCodecUtil$a;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;Z)Lcom/google/android/exoplayer/e;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;
        }
    .end annotation

    .line 1
    invoke-static {p0, p1}, Lcom/google/android/exoplayer/MediaCodecUtil;->b(Ljava/lang/String;Z)Landroid/util/Pair;

    move-result-object p0

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 2
    :cond_0
    new-instance p1, Lcom/google/android/exoplayer/e;

    iget-object v0, p0, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    iget-object p0, p0, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast p0, Landroid/media/MediaCodecInfo$CodecCapabilities;

    invoke-static {p0}, Lcom/google/android/exoplayer/MediaCodecUtil;->a(Landroid/media/MediaCodecInfo$CodecCapabilities;)Z

    move-result p0

    invoke-direct {p1, v0, p0}, Lcom/google/android/exoplayer/e;-><init>(Ljava/lang/String;Z)V

    return-object p1
.end method

.method private static a(Landroid/media/MediaCodecInfo$CodecCapabilities;)Z
    .locals 2

    .line 32
    sget v0, Lcom/google/android/exoplayer/util/o;->a:I

    const/16 v1, 0x13

    if-lt v0, v1, :cond_0

    .line 33
    invoke-static {p0}, Lcom/google/android/exoplayer/MediaCodecUtil;->b(Landroid/media/MediaCodecInfo$CodecCapabilities;)Z

    move-result p0

    return p0

    :cond_0
    const/4 p0, 0x0

    return p0
.end method

.method private static a(Landroid/media/MediaCodecInfo;Ljava/lang/String;Z)Z
    .locals 2

    .line 5
    invoke-virtual {p0}, Landroid/media/MediaCodecInfo;->isEncoder()Z

    move-result p0

    const/4 v0, 0x0

    if-nez p0, :cond_a

    if-nez p2, :cond_0

    const-string p0, ".secure"

    invoke-virtual {p1, p0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_0

    goto/16 :goto_0

    .line 6
    :cond_0
    sget p0, Lcom/google/android/exoplayer/util/o;->a:I

    const/16 p2, 0x15

    if-ge p0, p2, :cond_1

    const-string p0, "CIPAACDecoder"

    .line 7
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_a

    :cond_1
    const-string p0, "CIPMP3Decoder"

    .line 8
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_a

    const-string p0, "CIPVorbisDecoder"

    .line 9
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_a

    const-string p0, "AACDecoder"

    .line 10
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_a

    const-string p0, "MP3Decoder"

    .line 11
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_2

    goto/16 :goto_0

    .line 12
    :cond_2
    sget p0, Lcom/google/android/exoplayer/util/o;->a:I

    const/16 p2, 0x10

    if-ne p0, p2, :cond_3

    const-string p0, "OMX.SEC.MP3.Decoder"

    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_3

    return v0

    .line 13
    :cond_3
    sget p0, Lcom/google/android/exoplayer/util/o;->a:I

    if-ne p0, p2, :cond_5

    const-string p0, "OMX.qcom.audio.decoder.mp3"

    .line 14
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_5

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "dlxu"

    .line 15
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "protou"

    .line 16
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "C6602"

    .line 17
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "C6603"

    .line 18
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "C6606"

    .line 19
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "C6616"

    .line 20
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "L36h"

    .line 21
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_4

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string v1, "SO-02E"

    .line 22
    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_5

    :cond_4
    return v0

    .line 23
    :cond_5
    sget p0, Lcom/google/android/exoplayer/util/o;->a:I

    if-ne p0, p2, :cond_7

    const-string p0, "OMX.qcom.audio.decoder.aac"

    .line 24
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_7

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string p2, "C1504"

    .line 25
    invoke-virtual {p2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_6

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string p2, "C1505"

    .line 26
    invoke-virtual {p2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_6

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string p2, "C1604"

    .line 27
    invoke-virtual {p2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_6

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string p2, "C1605"

    .line 28
    invoke-virtual {p2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_7

    :cond_6
    return v0

    .line 29
    :cond_7
    sget p0, Lcom/google/android/exoplayer/util/o;->a:I

    const/16 p2, 0x13

    if-gt p0, p2, :cond_9

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    if-eqz p0, :cond_9

    const-string p2, "d2"

    .line 30
    invoke-virtual {p0, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-nez p0, :cond_8

    sget-object p0, Lcom/google/android/exoplayer/util/o;->b:Ljava/lang/String;

    const-string p2, "serrano"

    invoke-virtual {p0, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_9

    :cond_8
    sget-object p0, Lcom/google/android/exoplayer/util/o;->c:Ljava/lang/String;

    const-string p2, "samsung"

    .line 31
    invoke-virtual {p2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_9

    const-string p0, "OMX.SEC.vp8.dec"

    invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_9

    return v0

    :cond_9
    const/4 p0, 0x1

    return p0

    :cond_a
    :goto_0
    return v0
.end method

.method private static b(Lcom/google/android/exoplayer/MediaCodecUtil$b;Lcom/google/android/exoplayer/MediaCodecUtil$c;)Landroid/util/Pair;
    .locals 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/exoplayer/MediaCodecUtil$b;",
            "Lcom/google/android/exoplayer/MediaCodecUtil$c;",
            ")",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "Landroid/media/MediaCodecInfo$CodecCapabilities;",
            ">;"
        }
    .end annotation

    .line 11
    iget-object v0, p0, Lcom/google/android/exoplayer/MediaCodecUtil$b;->a:Ljava/lang/String;

    .line 12
    invoke-interface {p1}, Lcom/google/android/exoplayer/MediaCodecUtil$c;->a()I

    move-result v1

    .line 13
    invoke-interface {p1}, Lcom/google/android/exoplayer/MediaCodecUtil$c;->b()Z

    move-result v2

    const/4 v3, 0x0

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v1, :cond_7

    .line 14
    invoke-interface {p1, v4}, Lcom/google/android/exoplayer/MediaCodecUtil$c;->a(I)Landroid/media/MediaCodecInfo;

    move-result-object v5

    .line 15
    invoke-virtual {v5}, Landroid/media/MediaCodecInfo;->getName()Ljava/lang/String;

    move-result-object v6

    .line 16
    invoke-static {v5, v6, v2}, Lcom/google/android/exoplayer/MediaCodecUtil;->a(Landroid/media/MediaCodecInfo;Ljava/lang/String;Z)Z

    move-result v7

    if-eqz v7, :cond_6

    .line 17
    invoke-virtual {v5}, Landroid/media/MediaCodecInfo;->getSupportedTypes()[Ljava/lang/String;

    move-result-object v7

    const/4 v8, 0x0

    .line 18
    :goto_1
    array-length v9, v7

    if-ge v8, v9, :cond_6

    .line 19
    aget-object v9, v7, v8

    .line 20
    invoke-virtual {v9, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_5

    .line 21
    invoke-virtual {v5, v9}, Landroid/media/MediaCodecInfo;->getCapabilitiesForType(Ljava/lang/String;)Landroid/media/MediaCodecInfo$CodecCapabilities;

    move-result-object v9

    .line 22
    iget-object v10, p0, Lcom/google/android/exoplayer/MediaCodecUtil$b;->a:Ljava/lang/String;

    invoke-interface {p1, v10, v9}, Lcom/google/android/exoplayer/MediaCodecUtil$c;->a(Ljava/lang/String;Landroid/media/MediaCodecInfo$CodecCapabilities;)Z

    move-result v10

    if-nez v2, :cond_2

    .line 23
    sget-object v11, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    iget-boolean v12, p0, Lcom/google/android/exoplayer/MediaCodecUtil$b;->b:Z

    if-eqz v12, :cond_0

    new-instance v12, Lcom/google/android/exoplayer/MediaCodecUtil$b;

    invoke-direct {v12, v0, v3}, Lcom/google/android/exoplayer/MediaCodecUtil$b;-><init>(Ljava/lang/String;Z)V

    goto :goto_2

    :cond_0
    move-object v12, p0

    .line 24
    :goto_2
    invoke-static {v6, v9}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v13

    .line 25
    invoke-virtual {v11, v12, v13}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-eqz v10, :cond_4

    .line 26
    sget-object v10, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    iget-boolean v11, p0, Lcom/google/android/exoplayer/MediaCodecUtil$b;->b:Z

    if-eqz v11, :cond_1

    move-object v11, p0

    goto :goto_3

    :cond_1
    new-instance v11, Lcom/google/android/exoplayer/MediaCodecUtil$b;

    const/4 v12, 0x1

    invoke-direct {v11, v0, v12}, Lcom/google/android/exoplayer/MediaCodecUtil$b;-><init>(Ljava/lang/String;Z)V

    :goto_3
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v13, ".secure"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 27
    invoke-static {v12, v9}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v9

    .line 28
    invoke-virtual {v10, v11, v9}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_5

    .line 29
    :cond_2
    sget-object v11, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    iget-boolean v12, p0, Lcom/google/android/exoplayer/MediaCodecUtil$b;->b:Z

    if-ne v12, v10, :cond_3

    move-object v12, p0

    goto :goto_4

    :cond_3
    new-instance v12, Lcom/google/android/exoplayer/MediaCodecUtil$b;

    invoke-direct {v12, v0, v10}, Lcom/google/android/exoplayer/MediaCodecUtil$b;-><init>(Ljava/lang/String;Z)V

    .line 30
    :goto_4
    invoke-static {v6, v9}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v9

    .line 31
    invoke-virtual {v11, v12, v9}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 32
    :cond_4
    :goto_5
    sget-object v9, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    invoke-virtual {v9, p0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_5

    .line 33
    sget-object p1, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    invoke-virtual {p1, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/util/Pair;

    return-object p0

    :cond_5
    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    :cond_6
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    :cond_7
    const/4 p0, 0x0

    return-object p0
.end method

.method public static declared-synchronized b(Ljava/lang/String;Z)Landroid/util/Pair;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Z)",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "Landroid/media/MediaCodecInfo$CodecCapabilities;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;
        }
    .end annotation

    const-class v0, Lcom/google/android/exoplayer/MediaCodecUtil;

    monitor-enter v0

    .line 1
    :try_start_0
    new-instance v1, Lcom/google/android/exoplayer/MediaCodecUtil$b;

    invoke-direct {v1, p0, p1}, Lcom/google/android/exoplayer/MediaCodecUtil$b;-><init>(Ljava/lang/String;Z)V

    .line 2
    sget-object v2, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    invoke-virtual {v2, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 3
    sget-object p0, Lcom/google/android/exoplayer/MediaCodecUtil;->a:Ljava/util/HashMap;

    invoke-virtual {p0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/util/Pair;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object p0

    .line 4
    :cond_0
    :try_start_1
    sget v2, Lcom/google/android/exoplayer/util/o;->a:I

    const/4 v3, 0x0

    const/16 v4, 0x15

    if-lt v2, v4, :cond_1

    new-instance v2, Lcom/google/android/exoplayer/MediaCodecUtil$e;

    invoke-direct {v2, p1}, Lcom/google/android/exoplayer/MediaCodecUtil$e;-><init>(Z)V

    goto :goto_0

    :cond_1
    new-instance v2, Lcom/google/android/exoplayer/MediaCodecUtil$d;

    invoke-direct {v2, v3}, Lcom/google/android/exoplayer/MediaCodecUtil$d;-><init>(Lcom/google/android/exoplayer/MediaCodecUtil$a;)V

    .line 5
    :goto_0
    invoke-static {v1, v2}, Lcom/google/android/exoplayer/MediaCodecUtil;->a(Lcom/google/android/exoplayer/MediaCodecUtil$b;Lcom/google/android/exoplayer/MediaCodecUtil$c;)Landroid/util/Pair;

    move-result-object v2

    if-eqz p1, :cond_2

    if-nez v2, :cond_2

    .line 6
    sget p1, Lcom/google/android/exoplayer/util/o;->a:I

    if-gt v4, p1, :cond_2

    sget p1, Lcom/google/android/exoplayer/util/o;->a:I

    const/16 v4, 0x17

    if-gt p1, v4, :cond_2

    .line 7
    new-instance p1, Lcom/google/android/exoplayer/MediaCodecUtil$d;

    invoke-direct {p1, v3}, Lcom/google/android/exoplayer/MediaCodecUtil$d;-><init>(Lcom/google/android/exoplayer/MediaCodecUtil$a;)V

    .line 8
    invoke-static {v1, p1}, Lcom/google/android/exoplayer/MediaCodecUtil;->a(Lcom/google/android/exoplayer/MediaCodecUtil$b;Lcom/google/android/exoplayer/MediaCodecUtil$c;)Landroid/util/Pair;

    move-result-object v2

    if-eqz v2, :cond_2

    const-string p1, "MediaCodecUtil"

    .line 9
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "MediaCodecList API didn\'t list secure decoder for: "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, ". Assuming: "

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p0, v2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast p0, Ljava/lang/String;

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 10
    :cond_2
    monitor-exit v0

    return-object v2

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method private static b(Landroid/media/MediaCodecInfo$CodecCapabilities;)Z
    .locals 1
    .annotation build Landroid/annotation/TargetApi;
        value = 0x13
    .end annotation

    const-string v0, "adaptive-playback"

    .line 34
    invoke-virtual {p0, v0}, Landroid/media/MediaCodecInfo$CodecCapabilities;->isFeatureSupported(Ljava/lang/String;)Z

    move-result p0

    return p0
.end method
